<!--
 * @Author: your name
 * @Date: 2021-12-16 15:50:37
 * @LastEditTime: 2021-12-16 15:54:30
 * @LastEditors: Please set LastEditors
 * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 * @FilePath: \day8vue3\my-app\src\components\Provider.vue
-->
/<template>
  <div>
      <p>{{title}}</p>
      <p>{{count}}</p>
  </div>
</template>

<script>

import {inject} from "vue"

export default {
    setup(){
        let title=inject("title")
        let count=inject("count")
        return {
            title,
            count
        }
    }
}
</script>

<style>

</style>